import { get,post,put,del } from "../util/request"


/**
 * 用来封装员工信息操作的接口
 */
export async function getEmployeeList(page){
    return await get('/product/list',page);
}

export async function addProduct(productEntity){
    return await post('/product/add',productEntity)
}


export async function modifyEmployee(empEntity){
    return await put('/back/update',empEntity)
}

export async function delEmp(id){
    return await del('/back/delete/'+id);
}

export async function delEmps(ids){
    return await del('/back/deleteByIds/',ids);
}